import Vue from 'vue'
import App from './App'

import uView from "uview-ui";
Vue.use(uView);

uni.$u.config.unit = 'rpx'

import '@/common/js/filter.js'

import globalPath from '@/common/js/global.path.js'
Vue.prototype.$globalPath = globalPath

import global from '@/common/js/global.js'
Vue.prototype.$global = global

Vue.config.productionTip = false
App.mpType = 'app'

// vuex 储存
import store from '@/store';

let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);

const app = new Vue({
	store,
    ...App
})

// 请求
import httpInterceptor from '@/common/js/http.interceptor.js'
Vue.use(httpInterceptor, app)

import httpApi from '@/common/js/http.api.js'
Vue.use(httpApi, app)

import api from '@/common/js/api.js'
Vue.prototype.$api = api;

app.$mount()
